<p class="validateTips">请输入以下内容.</p>

<form id="supplierForm"
	action="<?php echo URL::site("boSupplier/insert")?>" method='post'
	enctype="multipart/form-data">
<table id="supplier" class="ui-widget ui-widget-content" width="100%">
	<tr>
		<td width="30%"><label>商家类别</label></td>
		<td width="70%"><select id="sup_cate_id" name="sup_cate_id"
			class="text ui-widget-content ui-corner-all">
			<?php
			foreach ($result_supplier_category as $item){
				echo '<option value='.$item->id.'>'.$item->name.'</option>';
			}
			?>
		</select></td>
	</tr>
	<tr>
		<td width="30%">名称*</td>
		<td><input type="text" name="name" id="name"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>地址*</td>
		<td><input type="text" name="address" id="address"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>路段</td>
		<td><select id="road" name="road"
			class="text ui-widget-content ui-corner-all">
			<?php
			foreach ($areaArray as $item){
				echo '<option value='.$item.'>'.$item.'</option>';
			}
			?>
		</select></td>
	</tr>
	<tr>
		<td>固话1*</td>
		<td><input type="text" name="phone" id="phone"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>固话2</td>
		<td><input type="text" name="phone2" id="phone2"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>手机1</td>
		<td><input type="text" name="telephone" id="telephone"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>手机2</td>
		<td><input type="text" name="telephone2" id="telephone2"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>营业时间</td>
		<td>从
		<select id="starttime" name="starttime" class="timetext ui-widget-content ui-corner-all">
			<?php 
				$index = 1;
				while ($index <= 24){
					echo '<option>'.$index.'</option>';
					$index++;
				}
			?>
		</select>&nbsp;至
		<select id="endtime" name="endtime" class="timetext ui-widget-content ui-corner-all">
			<?php 
				$index = 1;
				while ($index <= 24){
					echo '<option>'.$index.'</option>';
					$index++;
				}
			?>
		</select>
	</tr>

	<tr>
		<td>起送金额*</td>
		<td><input type="text" name="leastprice" id="leastprice"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>外卖范围*</td>
		<td><input type="text" name="leastdistance" id="leastdistance"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>人均价格*</td>
		<td><input type="text" name="avgprice" id="avgprice"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>排序*</td>
		<td><input type="text" name="sort" id="sort"
			class="text ui-widget-content ui-corner-all" /></td>
	</tr>
	<tr>
		<td>图片地址*</td>
		<td><?php echo Form::file('file', array('id'=>'file','class'=>'text ui-widget-content ui-corner-all'));?></td>
	</tr>
	<tr>
		<td>送餐说明*</td>
		<td><textarea name="deliverydesc" id="deliverydesc"
			class="text ui-widget-content ui-corner-all desc"></textarea></td>
	</tr>
	<tr>
		<td>商家描述*</td>
		<td><textarea name="desc" id="desc"
			class="text ui-widget-content ui-corner-all desc"></textarea></td>
	</tr>
</table>
</form>
